package com.mfhcd.facepay.model;

import androidx.databinding.BaseObservable;
import androidx.databinding.Bindable;

import java.io.Serializable;

/**
 * 获取服务器响应的model
 */
public abstract class ResponseModel extends BaseObservable implements Serializable {

    public static final class TestResp extends ResponseModel {
        @Bindable
        public String captchaId;
        @Bindable
        public String captchaImg;
    }

    public static final class TrxDataResp extends ResponseModel {

        /**
         * code : 0000
         * iden_rslt : {"responseCode":"1000","card_tail":"0013","ins_nm":"测试银行","name":"*三","par":"UP0032cyihq0a4tj6dagyb3ruzdq7","pin":"LQTjGcoIV31pHlMsPxhT0Q==","token":"6214830215995142","xor_salt":"0224131457747038"}
         * msg : 需采集手机号后4位
         */

        private String code;
        private IdenRsltBean iden_rslt;
        private String msg;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public IdenRsltBean getIden_rslt() {
            return iden_rslt;
        }

        public void setIden_rslt(IdenRsltBean iden_rslt) {
            this.iden_rslt = iden_rslt;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }

        public static class IdenRsltBean {
            /**
             * responseCode : 1000
             * card_tail : 0013
             * ins_nm : 测试银行
             * name : *三
             * par : UP0032cyihq0a4tj6dagyb3ruzdq7
             * pin : LQTjGcoIV31pHlMsPxhT0Q==
             * token : 6214830215995142
             * xor_salt : 0224131457747038
             */

            private String responseCode;
            private String card_tail;
            private String ins_nm;
            private String name;
            private String par;
            private String pin;
            private String token;
            private String xor_salt;

            public String getResponseCode() {
                return responseCode;
            }

            public void setResponseCode(String responseCode) {
                this.responseCode = responseCode;
            }

            public String getCard_tail() {
                return card_tail;
            }

            public void setCard_tail(String card_tail) {
                this.card_tail = card_tail;
            }

            public String getIns_nm() {
                return ins_nm;
            }

            public void setIns_nm(String ins_nm) {
                this.ins_nm = ins_nm;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getPar() {
                return par;
            }

            public void setPar(String par) {
                this.par = par;
            }

            public String getPin() {
                return pin;
            }

            public void setPin(String pin) {
                this.pin = pin;
            }

            public String getToken() {
                return token;
            }

            public void setToken(String token) {
                this.token = token;
            }

            public String getXor_salt() {
                return xor_salt;
            }

            public void setXor_salt(String xor_salt) {
                this.xor_salt = xor_salt;
            }
        }
    }

    public static final class TransResp extends ResponseModel {

        /**
         * CON_MOD : 00
         * PRO_COD : 000000
         * CTXN_TM : 211423
         * TRM_NO : 01978239
         * SECUR_INF : 2600000000000000
         * TTXN_AMT : 000000000011
         * ADD_DATA : 03080000   48344911
         * CSEQ_NO : 000570
         * STL_DAT : 0225
         * AUT_CD : 973277
         * MSG_ID : 0210
         * ACQ_COD : 48340000
         * RET_RE_NO : 200225577110
         * RESE_PRI_63 : CUP
         * RESE_PRI_60                              : 22000064000701
         * MAC : 4133414545423630
         * CPSCOD : 00
         * MERC_CD : 834491115200003
         * CCY : 156
         * PAN : 6214830215995142
         * CTXN_DT : 0225
         */

        private String CON_MOD;
        private String PRO_COD;
        private String CTXN_TM;
        private String TRM_NO;
        private String SECUR_INF;
        private String TTXN_AMT;
        private String ADD_DATA;
        private String CSEQ_NO;
        private String STL_DAT;
        private String AUT_CD;
        private String MSG_ID;
        private String ACQ_COD;
        private String RET_RE_NO;
        private String RESE_PRI_63;
        private String RESE_PRI_60;
        private String MAC;
        private String CPSCOD;
        private String MERC_CD;
        private String CCY;
        private String PAN;
        private String CTXN_DT;

        public String getCON_MOD() {
            return CON_MOD;
        }

        public void setCON_MOD(String CON_MOD) {
            this.CON_MOD = CON_MOD;
        }

        public String getPRO_COD() {
            return PRO_COD;
        }

        public void setPRO_COD(String PRO_COD) {
            this.PRO_COD = PRO_COD;
        }

        public String getCTXN_TM() {
            return CTXN_TM;
        }

        public void setCTXN_TM(String CTXN_TM) {
            this.CTXN_TM = CTXN_TM;
        }

        public String getTRM_NO() {
            return TRM_NO;
        }

        public void setTRM_NO(String TRM_NO) {
            this.TRM_NO = TRM_NO;
        }

        public String getSECUR_INF() {
            return SECUR_INF;
        }

        public void setSECUR_INF(String SECUR_INF) {
            this.SECUR_INF = SECUR_INF;
        }

        public String getTTXN_AMT() {
            return TTXN_AMT;
        }

        public void setTTXN_AMT(String TTXN_AMT) {
            this.TTXN_AMT = TTXN_AMT;
        }

        public String getADD_DATA() {
            return ADD_DATA;
        }

        public void setADD_DATA(String ADD_DATA) {
            this.ADD_DATA = ADD_DATA;
        }

        public String getCSEQ_NO() {
            return CSEQ_NO;
        }

        public void setCSEQ_NO(String CSEQ_NO) {
            this.CSEQ_NO = CSEQ_NO;
        }

        public String getSTL_DAT() {
            return STL_DAT;
        }

        public void setSTL_DAT(String STL_DAT) {
            this.STL_DAT = STL_DAT;
        }

        public String getAUT_CD() {
            return AUT_CD;
        }

        public void setAUT_CD(String AUT_CD) {
            this.AUT_CD = AUT_CD;
        }

        public String getMSG_ID() {
            return MSG_ID;
        }

        public void setMSG_ID(String MSG_ID) {
            this.MSG_ID = MSG_ID;
        }

        public String getACQ_COD() {
            return ACQ_COD;
        }

        public void setACQ_COD(String ACQ_COD) {
            this.ACQ_COD = ACQ_COD;
        }

        public String getRET_RE_NO() {
            return RET_RE_NO;
        }

        public void setRET_RE_NO(String RET_RE_NO) {
            this.RET_RE_NO = RET_RE_NO;
        }

        public String getRESE_PRI_63() {
            return RESE_PRI_63;
        }

        public void setRESE_PRI_63(String RESE_PRI_63) {
            this.RESE_PRI_63 = RESE_PRI_63;
        }

        public String getRESE_PRI_60() {
            return RESE_PRI_60;
        }

        public void setRESE_PRI_60(String RESE_PRI_60) {
            this.RESE_PRI_60 = RESE_PRI_60;
        }

        public String getMAC() {
            return MAC;
        }

        public void setMAC(String MAC) {
            this.MAC = MAC;
        }

        public String getCPSCOD() {
            return CPSCOD;
        }

        public void setCPSCOD(String CPSCOD) {
            this.CPSCOD = CPSCOD;
        }

        public String getMERC_CD() {
            return MERC_CD;
        }

        public void setMERC_CD(String MERC_CD) {
            this.MERC_CD = MERC_CD;
        }

        public String getCCY() {
            return CCY;
        }

        public void setCCY(String CCY) {
            this.CCY = CCY;
        }

        public String getPAN() {
            return PAN;
        }

        public void setPAN(String PAN) {
            this.PAN = PAN;
        }

        public String getCTXN_DT() {
            return CTXN_DT;
        }

        public void setCTXN_DT(String CTXN_DT) {
            this.CTXN_DT = CTXN_DT;
        }
    }
}
